import http from "../utils/http/service";

// 审批中心接口
export const postBills = (data): any => {
  return http.post("/rdms-admin/flow/common/approve/bills", data);
};

// 查询当前流程是否可以撤回
export const queryCanRecall = (data): any => {
  return http.post(`/rdms-admin/flow/common/canRecall`, data);
};

// 撤回
export const postRecall = (data): any => {
  return http.post(`/rdms-admin/flow/common/recall`, data);
};

// 查询我的申请
export const myApplyList = (data): any => {
  return http.post(`/rdms-admin/flow/common/myApplyList`, data);
};

// 查询待阅、已阅列表
export const flowQueryNotify = (data): any => {
  return http.post(`/rdms-admin/flow/common/queryNotify`, data);
};

// 知会发起
export const flowNotify = (data): any => {
  return http.post(`/rdms-admin/flow/common/notify`, data);
};

// 待阅标记为已阅
export const flowNotifyRead = (data): any => {
  return http.post(`/rdms-admin/flow/common/notifyRead`, data);
};

// 保存表单
export const saveStorageFormData = (data): any => {
  return http.post("/rdms-admin/flow/common/storageTmpData", data);
};

// 获取保存表单
export const getStorageFormData = (data): any => {
  return http.post("/rdms-admin/flow/common/getStorageTmpData", data);
};
